package com.ldu.service;

import com.ldu.dao.query.support.PageResult;
import com.ldu.pojo.Admin;

import java.util.List;

public interface AdminService {

	
	Admin findAdmin(Long phone, String password);

	Admin findAdminById(Long id);

	void updateAdmin(Admin admins);

	List<Admin> getAdminList();



	PageResult<Admin> getPageAdmin(int pageNum, int pageSize);

	Admin getAdminById(int id);



	public PageResult<Admin> getPageAdminByIdOrUserName(Long id, String username, Integer userRole, int pageNum, int pageSize);

	Admin selectByPrimaryKey(Long id);

	int updateByPrimaryKey(Admin admin);

	Boolean deleteAdminById(Long id);


	List<Admin> queryAdmin(Admin admin);

	Boolean add(Admin admin);

}
